package br.com.locanet.view.impl;

import java.util.Locale;

import javax.faces.bean.ManagedBean;
import javax.servlet.http.HttpServletResponse;

import br.com.locanet.view.AbstractManagedBean;

@ManagedBean(name="locationBean")
public class LocationBean extends AbstractManagedBean {
	private String location;
	
	public String setLocation(){
		getFacesContext().getViewRoot().setLocale(new Locale(getLocation()));
		return null;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}
}
